package com.j2eefast.produce.pms.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.j2eefast.common.core.base.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 检测项目分类列表
 * pms_test_project
 * @author: summer
 * @date 2021-05-29 10:28
 */
@Data
@TableName("pms_test_project")
public class PmsTestProjectEntity implements Serializable {

    /** 主键 */
    @TableId(value = "id",type = IdType.INPUT)
    @ExcelIgnore
    private Long id;
//    /**父类*/
//    @TableField(value = "parent_id")
//    private Long parentId;
    /** 检验编号 */
    @TableField(value = "test_code")
    @ExcelProperty(value = "检验编号",index = 0)
    private String testCode;
    /**名称*/
    @TableField(value = "test_classify")
    @ExcelIgnore
    private String testClassify;

    /**名称*/
    @TableField(value = "classify_id")
    @ExcelIgnore
    private String classifyId;
    /** 检测类别 */
    @TableField(value = "test_type")
    @ExcelProperty(value = "检测类别",index = 3)
    private int testType;
    /** 名称 */
    @TableField(value = "name")
    @ExcelProperty(value = "名称",index = 2)
    private String name;
    /** 检测项目标题 */
    @TableField(value = "test_title")
    @ExcelProperty(value = "检测项目标题",index = 1)
    private String testTitle;
    /** 编号统计 */
    @TableField(value = "total")
    @ExcelProperty(value = "编号统计",index = 4)
    private Long total;
    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @TableField(value = "update_time")
    @ExcelProperty(value = "更新时间",index = 5)
    private Date updateTime;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @TableField(value = "create_time")
    @ExcelProperty(value = "创建时间",index = 6)
    private Date createTime;
    /** 创建人 */
    @TableField(value = "create_by")
    @ExcelProperty(value = "创建人",index = 7)
    private String createBy;
    /** 更新人 */
    @TableField(value = "update_by")
    @ExcelProperty(value = "更新人",index = 8)
    private String updateBy;
    /** 备注 */
    @TableField(value = "remark")
    @ExcelProperty(value = "备注",index = 9)
    private String remark;


















}
